Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EVEREST-1680 ConnectionURL fix #848

Merged
merged 3 commits into from
Nov 21, 2024

Conversation

oksana-grishchenko
Copy link
Contributor

@oksana-grishchenko oksana-grishchenko commented Nov 20, 2024

Problem:
EVEREST-1680

The password in the ConnectionURL was query-escaped twice.

Reason:
The used url.URL uses the encodeUserPassword policy but not the encodeQueryComponent which means the characters like , are not escaped. However such characters can still appear in the DB passwords. So I saw the characters unescaped and thought the password wasn't escaped at all that's where an extra url.QueryEscape came from.

Solution:
Do not use url.URL to build the connection URL

@oksana-grishchenko oksana-grishchenko requested a review from a team as a code owner November 20, 2024 09:45
@oksana-grishchenko oksana-grishchenko enabled auto-merge (squash) November 21, 2024 09:15
@oksana-grishchenko oksana-grishchenko merged commit 4ac3340 into main Nov 21, 2024
9 checks passed
@oksana-grishchenko oksana-grishchenko deleted the EVEREST-1680-connection-url-fix branch November 21, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants